import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import sp from '../views/successPage.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/sp',
    name: 'home',
    component: sp
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  // mp链路
  {
    path: '/220402',
    name: '220402',
    component: () => import('../views/220402.vue')
  },
  // mp链路-成功页面
  {
    path: '/220402success',
    name: '220402success',
    component: () => import('../views/220402success.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
